import { IsArray, ValidateNested } from "class-validator";
import { Type } from "class-transformer";
import { MonitoringDataDto } from "./monitoring-data.dto";

/**
 * 批量监控数据DTO
 * 用于接收前端批量发送的监控数据
 */
export class BatchMonitoringDataDto {
  @IsArray()
  @ValidateNested({ each: true })
  @Type(() => MonitoringDataDto)
  data: MonitoringDataDto[];
}